package com.project.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
@Data
@ApiModel(value = "商品推荐")
@TableName(value = "cms_product_recommend")
@Table(name = "cms_product_recommend" ,comment = "商品推荐")
public class CmsProductRecommend implements Serializable {
    /**
     * 推荐ID
     */
    @TableId
    @ApiModelProperty(value = "推荐ID")
    @Column(type= MySqlTypeConstant.BIGINT, comment = "推荐ID", length = 11, isKey = true, isAutoIncrement = true,isNull = false)
    private Long recommendId;

    /**
     * 产品ID
     */
    @ApiModelProperty(value = "产品ID")
    @Column(comment = "产品ID")
    private Long productId;

    /**
     * 推荐类型（1:秒杀,2:每日推荐,3:美味推荐）
     */
    @ApiModelProperty(value = "推荐类型（1:秒杀,2:每日推荐,3:美味推荐）")
    @Column(comment = "推荐类型（1:秒杀,2:每日推荐,3:美味推荐）")
    private Integer type;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    @Column(comment = "排序")
    private Integer sort;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    @Column(comment = "创建人")
    private Long createUser;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @Column(comment = "创建时间", type = MySqlTypeConstant.DATETIME)
    private Date createTime;

    private static final long serialVersionUID = 1L;

}